package net.tensor.tensorprovider.database.controller;


import net.tensor.tensorprovider.database.service.impl.AppRuInstAssServiceImpl;
import net.tensor.tensorprovider.exception.ResultBody;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 记录节点被分给谁 前端控制器
 * </p>
 *
 * @author author
 * @since 2020-10-19
 */
@RestController
@RequestMapping("/app-ru-inst-ass")
public class AppRuInstAssController {

    @Autowired
    private AppRuInstAssServiceImpl appRuInstAssService;

    @GetMapping
    public ResultBody resultBody(){
        ResultBody resultBody=new ResultBody();
        resultBody.setCode("200");
        resultBody.setMessage("成功");
        resultBody.setResult(appRuInstAssService.list());
        return resultBody;
    }
}
